package org.example.mallcommon.projo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 韩先楚
 * 购物车表
 */
@Data
@TableName("carts")
public class Carts {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private Integer productId;
    private BigDecimal price;
    /**
     * 数量
     */
    private Integer quantity;
    private Date createTime;
    private Date updateTime;
}
